package com.neuedu.springbootmy12306.entity;

public class Category {
	// 使用mvc自動封裝，建議使用包裝類
	private Integer categoryId;
	private String categoryName;
	private String image;

	public Category() {
		super();
	}

	public Category(Integer categoryId) {
		super();
		this.categoryId = categoryId;
	}

	public Category(Integer categoryId, String categoryName, String image) {
		super();
		this.categoryId = categoryId;
		this.categoryName = categoryName;
		this.image = image;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Override
	public String toString() {
		return "Category [categoryId=" + categoryId + ", categoryName=" + categoryName + ", image=" + image + "]";
	}

}
